package com.sse.serviceimpl.user;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.sse.base.AbstractFinder;
import com.sse.po.user.User;
import com.sse.service.user.UserServiceFinder;
@Service
public class UserServiceFinderImpl extends AbstractFinder<User> implements UserServiceFinder {
	public User login(String uname, String pwd) {
		List<Object> params = new ArrayList<Object>();
		params.add(uname);
		params.add(pwd);
		User user = (User)super.findByKey(User.class, "from User u where u.u_name=? and u.u_pwd=?", params.toArray());
		return user;
	}
}
